package com.hakim.wfb.customer.service;

import com.hakim.wfb.customer.params.trans.GetConsumeRecordParameter;
import com.hakim.wfb.customer.params.trans.GetTeamConsumeRecordParameter;
import com.hakim.wfb.customer.result.trans.ConsumeRecordView;
import com.hakim.wfb.customer.result.trans.TeamConsumeRecordView;
import com.hkfs.fundamental.api.data.ListResultEx;
import com.hkfs.fundamental.api.data.ObjectResultEx;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2017/7/7.
 */
public interface ConsumeRecordService {

    /**
     * @param param
     * @return
     */
    ListResultEx<ConsumeRecordView> getFinishedConsumeRecords(GetConsumeRecordParameter param);

    /**
     * @param param
     * @return
     */
    ListResultEx<ConsumeRecordView> getRunningConsumeRecords(GetConsumeRecordParameter param);

    /**
     * 获取用户投资记录
     *
     * @param param
     * @return
     */
    ListResultEx<ConsumeRecordView> getUserConsumeRecords(GetConsumeRecordParameter param);

    /**
     * 获取用户投资记录
     *
     * @param param
     * @return
     */
    ListResultEx<TeamConsumeRecordView> getTeamConsumeRecords(GetTeamConsumeRecordParameter param);

    /**
     * 用户投资中总额
     *
     * @param userId
     * @return
     */
    ObjectResultEx<BigDecimal> getUserInvestingAmount(String userId);

    /**
     * 团队投资中总额
     *
     * @param userOrg
     * @return
     */
    ObjectResultEx<BigDecimal> getTeamInvestingAmount(String userOrg);
}
